<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="operate.DictOperate,operate.vo.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<link rel="StyleSheet" href="<%=basePath %>form/css/dtree.css" type="text/css" />
	    <script type="text/javascript" src="<%=basePath %>form/js/dtree.js"></script>
	</head>

	<body>
		<div class="dtree"></div>

		<script type="text/javascript">
		
		d = new dTree('d','<%=basePath%>form/img/');
		d.add(0,-1,'字典');
		<%Map<String,Type> map=DictOperate.getDictTypes();
		Set set=map.keySet();
		Iterator ite=set.iterator();
		while(ite.hasNext()){
		String key=(String)ite.next();
		Type type=(Type)map.get(key);
		%>
		d.add('<%=type.getCode()%>',0,'<%=type.getTypeName()%>','<%=basePath%>form/dict/dict_list.jsp?code=<%=type.getCode()%>&&name=<%=type.getTypeName()%>','',"dict_list");
		<%}%>
		document.write(d);
		</script>
	</body>
</html>
